package com.yykj.prescription.server.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import com.yykj.prescription.client.enums.PrescriptionType;
import com.yykj.prescription.server.model.entity.template.TemplateDetailChina;
import com.yykj.prescription.server.model.entity.template.TemplateDetailChinaInfo;
import com.yykj.prescription.server.model.entity.template.TemplateDetailWest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TemplateListVO {
    private Integer id;

    @ApiModelProperty("模板名称")
    private String tempName;

    @ApiModelProperty("模板类型，west 西药方，china 中药方")
    private PrescriptionType type;

    @JsonSerialize(using = LocalDate2LongSerializer.class)
    private LocalDateTime addTime;

    @ApiModelProperty("中药方时有值,用法用量剂数等")
    private TemplateDetailChinaInfo chinaUseInfo;

    @ApiModelProperty("中药方时有值")
    private List<TemplateDetailChina> chinaList;

    @ApiModelProperty("西药方时有值")
    private List<TemplateDetailWest> westList;
}
